package cn.cqone.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Tenant {
    private Long id;
    //公司注册名称
    private String companyName;
    //电话
    private String companyTel;
    //邮箱
    private String email;
    //注册时间
    private Date registerTime;
    //状态
    private Integer state;
    //地址
    private String address;
    //公司坐标
    private String coordinate;
    //logo的url地址
    private String logoUrl;
    //是否付款
    private Boolean isPay;
    //多对多之套餐
    private List<SetMeal> setMeal = new ArrayList<>();

    public Tenant() {
    }

    @Override
    public String toString() {
        return "Tenant{" +
                "id=" + id +
                ", companyName='" + companyName + '\'' +
                ", companyTel='" + companyTel + '\'' +
                ", email='" + email + '\'' +
                ", registerTime=" + registerTime +
                ", state=" + state +
                ", address='" + address + '\'' +
                ", coordinate='" + coordinate + '\'' +
                ", logoUrl='" + logoUrl + '\'' +
                ", isPay=" + isPay +
                ", setMeal=" + setMeal +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyTel() {
        return companyTel;
    }

    public void setCompanyTel(String companyTel) {
        this.companyTel = companyTel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    public Date getRegisterTime() {
        return registerTime;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public Boolean getIsPay() {
        return isPay;
    }

    public void setIsPay(Boolean isPay) {
        this.isPay = isPay;
    }

    public List<SetMeal> getSetMeal() {
        return setMeal;
    }

    public void setSetMeal(List<SetMeal> setMeal) {
        this.setMeal = setMeal;
    }
}
